//
//  Google_History.h
//  MacStockApp
//
//  Created by 英傑 翁 on 12/3/21.
//  Copyright (c) 2012年 翁英傑. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Data_Model.h"
#import "Data_Object.h"

@interface Google_History : NSOperation {
    NSString *timezone; 
    NSString *code;
    NSString *read_write_file_code; //讀寫檔案的代碼
    NSDate *table_quote_date; //目前報價表上的時間 也就是報價時間
    id delgeate;
    
     BOOL have_to_reload_data;    
}

@property(retain) id delgeate;
-(id)init_With_Code:(NSString *)codea file_code:(NSString *)file_code table_quote_date:(NSDate *)dateq timezone:(NSString *)tz is_have_to_reload_data:(BOOL)have_to_reload;   
-(NSMutableDictionary *)get_history: (int)download_year;

//比較兩個日期是否為同一個交易日
- (BOOL)isSameDay:(NSDate*) date1  date2:(NSDate *) date2;

-(NSUInteger)index_split_array:(NSMutableArray *)split_array nsdate:(NSDate *)findate;
-(NSMutableArray*)indexs_split_array:(NSMutableArray *)split_array nsdate:(NSDate *)findate;


@end
